package com.example.tests;
import org.testng.annotations.Test;

@Test
public class ContactCreationTests extends TestBase {
	
	
	
	public void testNonEmptyContactCreation() throws Exception {
	    app.navigationHelper.openMainPage();
	    app.navigationHelper.gotoContactPage();
	    ContactData contactInformation = new ContactData(); 
	    contactInformation.firstnameObj = "Olga";  		
	    contactInformation.lastname = "Kokova";
	    contactInformation.address = "Turd Street, New York";
	    contactInformation.home = "+11111111";
	    contactInformation.mobile = "+22222222";
	    contactInformation.work = "+33333333";
	    contactInformation.email = "111@111.11";
	    contactInformation.email2 = "222@222.22";
	    contactInformation.bday = "1";
	    contactInformation.bmonth = "January";
	    contactInformation.byear = "1989";
	    contactInformation.new_group = "5";	    
	    contactInformation.address2 = "Sweet Street";
	    contactInformation.phone2 = "+44444444";
	    app.contactHelper.fillContactForm(contactInformation);
	    app.contactHelper.submitContactCreation();
	    app.contactHelper.returnToHomePage();
	    
}

	public void testEmptyContactCreation() throws Exception {
	    app.navigationHelper.openMainPage();
	    app.navigationHelper.gotoContactPage();
	    ContactData contactInformation = new ContactData(); 
	    contactInformation.firstnameObj = "";  		
	    contactInformation.lastname = "";
	    contactInformation.address = "";
	    contactInformation.home = "";
	    contactInformation.mobile = "";
	    contactInformation.work = "";
	    contactInformation.email = "";
	    contactInformation.email2 = "";
	    contactInformation.bday = "-";
	    contactInformation.bmonth = "-";
	    contactInformation.byear = "";
	    contactInformation.new_group = "[none]";	    
	    contactInformation.address2 = "";
	    contactInformation.phone2 = "";
	    app.contactHelper.fillContactForm(contactInformation);
	    app.contactHelper.submitContactCreation();
	    app.contactHelper.returnToHomePage();
		
	}
}

	
		
		
		
		
	
